package com.zfjt.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zfjt.dao.BrabchBeanMapper;
import com.zfjt.dao.NewsBeanMapper;
import com.zfjt.entity.NewsBean;
import com.zfjt.service.NewsBeanService;

@Service
public class NewsBeanServiceIpml implements NewsBeanService{
	
	@Autowired
	private NewsBeanMapper mNews;

	@Override
	public Integer deleteByPrimaryKey(String id) {
		return mNews.deleteByPrimaryKey(id);
	}

	@Override
	public Integer insert(NewsBean record) {
		return mNews.insert(record);
	}

	@Override
	public Integer insertSelective(NewsBean record) {
		return mNews.insertSelective(record);
	}

	@Override
	public NewsBean selectByPrimaryKey(String id) {
		return mNews.selectByPrimaryKey(id);
	}

	@Override
	public Integer updateByPrimaryKeySelective(NewsBean record) {
		return mNews.updateByPrimaryKeySelective(record);
	}

	@Override
	public Integer updateByPrimaryKey(NewsBean record) {
		return mNews.updateByPrimaryKey(record);
	}

	@Override
	public List<NewsBean> selectAll() {
		return mNews.selectAll();
	}

}
